Skip to content

Fix multi lora saving#148

Merged
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/0409-1
Apr 9, 2026
Merged

Fix multi lora saving#148
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/0409-1

Conversation

@tastelikefeet
Copy link
Copy Markdown
Collaborator

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Write the detail information belongs to this PR.

Experiment results

Paste your experiment result here(if needed).

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the save_lora_converter method to introduce a negative filter for LoRA weights and handle cases where torch_util.to_local_tensor returns None. The review highlights two critical issues: the negative_pattern regular expression is flawed, potentially leading to incorrect weights being saved, and the handling of _param being None is inconsistent and could cause issues in downstream utilities. Suggestions are provided to address both concerns.

@tastelikefeet tastelikefeet merged commit 21b3f7e into modelscope:main Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants